package com.xjzd.spring.validated;

import org.springframework.stereotype.Service;

@Service
public class IServiceImpl implements IService {

    @Override
    public String sayHello(User user) {
        return user.toString();
    }

    @Override
    public String sayName(String name) {
        return name + " validated";
    }
}
